<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>Insert title here</title>
		<%@ include file="../headcfg.jsp" %>
	</head>
	<body style="padding-left: 5px;padding-top: 5px;">
		
		<div class="panel-group" id="accordion">
		<c:forEach var="m1" items="${menu.childList }">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h4 class="panel-title">
						<a data-toggle="collapse" data-toggle="collapse" data-parent="#accordion" href="#collapse${m1.id }">
							${m1.name}
						</a>
					</h4>
				</div>
				<div id="collapse${m1.id }" class="panel-collapse collapse">
					<div class="panel-body">
						<ul class="list-unstyled">
						<c:forEach var="m2" items="${m1.childList }">
							<li><a href="${fn:indexOf(m2.href, '://') eq -1?ctx:''}${not empty m2.href?m2.href:'/404'}" target="${not empty m2.target ?m2.target:'mainFrame' }">${m2.name }</a></li>  
						</c:forEach>
						</ul>
					</div>
				</div>
			</div>
		</c:forEach>
		</div>
	</body>
</html>